|
SDK/J Authentication Package ver1.0 RICOH Confidential |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjp.co.ricoh.dsdk.scard.framework.service.CardService
jp.co.ricoh.dsdk.scard.option.applet.AppletServiceImpl
This is a sample implementation of AppletCardService.
| Field Summary |
| Fields inherited from class jp.co.ricoh.dsdk.scard.framework.service.CardService |
card |
| Constructor Summary | |
AppletServiceImpl()
|
|
| Method Summary | |
void |
initialize(Card card)
Initializes a card service. |
ResponseAPDU |
selectApplet(AppletID appletID)
Select an applet. |
APDU |
sendRequestAPDU(APDU apdu)
Sends an APDU to the currently selected card applet. |
APDU |
sendRequestAPDU(AppletID appletID,
APDU apdu)
Sends an APDU to the card applet which has the given AppletID. |
byte[] |
sendRequestAPDU(AppletID appletID,
byte[] request)
Sends a command bytes to the card applet which has the given AppletID. |
ResponseAPDU |
sendRequestAPDU(AppletID appletID,
RequestAPDU requestAPDU)
Sends a RequestAPDU to the card applet which has the given AppletID. |
byte[] |
sendRequestAPDU(byte[] request)
Sends a command bytes to the currently selected card applet. |
ResponseAPDU |
sendRequestAPDU(RequestAPDU requestAPDU)
Sends a RequestAPDU to the currently selected card applet. |
| Methods inherited from class jp.co.ricoh.dsdk.scard.framework.service.CardService |
finalize, getCard |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AppletServiceImpl()
| Method Detail |
public void initialize(Card card)
throws UnsupportedCardException,
CardServiceException
CardService
initialize in class CardServicecard -
a card linked to this card service.
UnsupportedCardException -
when the card service does not support the card.
CardServiceException -
when an error has occurred in the initialization of the card service.
public ResponseAPDU selectApplet(AppletID appletID)
throws CardServiceException
AppletService
selectApplet in interface AppletServiceappletID -
the AppletID.
ResponseAPDU received from the card.
CardServiceException -
if the applet selection failed.
public ResponseAPDU sendRequestAPDU(AppletID appletID,
RequestAPDU requestAPDU)
throws CardServiceException,
APDUException
AppletService
sendRequestAPDU in interface AppletServiceappletID -
the AppletID.requestAPDU -
a RequestAPDU to be sent.
ResponseAPDU received from the card.
APDUException -
if the response length was shorter than the status words length.
CardServiceException -
if the service encountered an error.
public APDU sendRequestAPDU(AppletID appletID,
APDU apdu)
throws CardServiceException
AppletService
sendRequestAPDU in interface AppletServiceappletID -
the AppletID.apdu -
an APDU to be sent.
APDU received from the card.
CardServiceException -
if the service encountered an error.
public byte[] sendRequestAPDU(AppletID appletID,
byte[] request)
throws CardServiceException
AppletService
sendRequestAPDU in interface AppletServiceappletID -
the AppletID.request -
a command bytes to be sent.
CardServiceException -
if the service encountered an error.
public ResponseAPDU sendRequestAPDU(RequestAPDU requestAPDU)
throws CardServiceException,
APDUException
AppletService
sendRequestAPDU in interface AppletServicerequestAPDU -
a RequestAPDU to be sent.
ResponseAPDU received from the card.
APDUException -
if the response length was shorter than the status words length.
CardServiceException -
if the service encountered an error.
public APDU sendRequestAPDU(APDU apdu)
throws CardServiceException
AppletService
sendRequestAPDU in interface AppletServiceapdu -
an APDU to be sent.
APDU received from the card.
CardServiceException -
if the service encountered an error.
public byte[] sendRequestAPDU(byte[] request)
throws CardServiceException
AppletService
sendRequestAPDU in interface AppletServicerequest -
a command bytes to be sent.
CardServiceException -
if the service encountered an error.
|
SDK/J Authentication Package ver1.0 RICOH Confidential |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||